<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@tag body-content="scriptless" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib tagdir="/WEB-INF/tags/" prefix="app" %>

<%@attribute name="pastas" type="java.util.Collection" required="false"%>


<ul>
    <c:forEach items="${pastas}" var="pasta">  
        <li id="${pasta.id}" item-expanded='false'>
            <img style='float: left; margin-right: 5px;' src='assets/images/folder.png' />
            <span item-title="true">${pasta.nome}</span>  
            <c:if test="${not empty pasta.pastaMds}">
                <app:pasta pastas="${pasta.pastaMds}"/>
            </c:if>                                                                                                        
        </li>
    </c:forEach>                                       
</ul>
